<?php

function db_connect(){
    $link = mysqli_connect('localhost','phpb61','GcUhc431','phpb61') or exit('数据库连接失败');
    mysqli_set_charset($link,'utf8');
    return $link;
}